<template>
  <div class="loading1">
    <div class="loading">
      <div class="obj"></div>
      <div class="obj"></div>
      <div class="obj"></div>
      <div class="obj"></div>
      <div class="obj"></div>
      <div class="obj"></div>
      <div class="obj"></div>
    </div>
  </div>
</template>

<script>
import { ref } from "vue";
export default {
  components: {},
  props: {},
};
</script>
<style lang="scss" scoped>
.loading1 {
  .loading {
    display: flex;
    align-items: center;
  }
  .obj {
    width: 0.2rem;
    height: 2rem;
    margin-left: 0.2rem;
    border-radius: 0.5rem;
    background: #fff;
    animation: loading 0.8s infinite;
  }
  .obj:nth-child(1) {
    animation-delay: 0.1s;
  }
  .obj:nth-child(2) {
    animation-delay: 0.2s;
  }
  .obj:nth-child(3) {
    animation-delay: 0.3s;
  }
  .obj:nth-child(4) {
    animation-delay: 0.4s;
  }
  .obj:nth-child(5) {
    animation-delay: 0.5s;
  }
  .obj:nth-child(6) {
    animation-delay: 0.6s;
  }
  .obj:nth-child(7) {
    animation-delay: 0.7s;
  }
  @keyframes loading {
    0% {
      height: 0;
    }
    50% {
      height: 2rem;
    }
    100% {
      height: 0;
    }
  }
}
</style>
